import request from "../utils/request.js"

//产品分类
export function category() {
	return request({
		url: "/Goods/getCategory"
	})
}

/**商品列表
 * @param {Object} data
 */
export function goodsLst(data) {
	return request({
		url: "/Goods/GoodsList",
		data
	})
}

/**商品详情
 * @param {Object} data
 */
export function detail(data) {
	return request({
		url: "/Goods/detail",
		data
	})
}

/**商品收藏
 * @param {Object} data
 */
export function goodsCollect(data) {
	return request({
		url: "/goods/goodsCollect",
		method: 'post',
		data
	})
}